<?php 
class exportActions extends sfActions 
{
    public function executeTest() 
    {
        $pages = Tree::getTreeByLabel('flashadmin');
		$xmlObjs = array();
		foreach( $pages[0]['children'] as $page )
		{

		    $textModule = TextModulePeer::retrieveByPk($page['obj']->getObjId());
			$xmlObjs[] = $textModule;
		}
		$this->xmlObjs = $xmlObjs;
		//debugvar($xmlObjs);
		//die();
    }

	public function executeDo() 
	{
		$c = new Criteria();
		$c->add(KandidataiPeer::STATUS_ID, MyConstants::OBJ_STATUS_ACTIVE);
		$c->addAscendingOrderByColumn(KandidataiPeer::CREATED_AT);
	    $this->pages = KandidataiPeer::doSelect($c);
	}

    public function executeTemp() 
    {
        
    }
}

?>